hook::add message bot:auth 93
set opt(auth) 0
proc bot:auth {from type body} {
global bot
	if {([ifadmin $from]>4)} {
		if {[cmd $body "auth"]} {
			set to [string range $body 5 [string length $body]]
			jlib::send_presence -to "$to" -type "subscribe" -stat "$bot(subscribe_reason)$bot(name)"
			jlib::send_presence -to "$to" -type subscribed
			return stop
		}
	}
}